#include "Tcp.h"
#include <iostream>
#include <cstring>
#define ip "172.25.41.88"
#define port 8080

#define BUFFER_SIZE 100

int main()
{
    TcpClient c(ip, port);
    
    char buffer[BUFFER_SIZE] = {0};
    while(1)
    {
        memset(buffer, 0, sizeof(buffer));
        scanf("%s", buffer);
        while(getchar() != '\n');
        c.TcpClientSend(buffer, sizeof(buffer));
        memset(buffer, 0, sizeof(buffer));
        c.TcpClientRecv(buffer, sizeof(buffer));
        std::cout<<buffer<<std::endl;
    }

    return 0;
}